package com.pcbly.web.bean.workflow;
 
import java.util.Date;
import java.util.Set;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import com.pcbly.web.bean.AbstractBaseBean;


/** @author Hibernate CodeGenerator */
@SuppressWarnings("unchecked")
public class WorkflowStepBean extends AbstractBaseBean {

    /**
	 * 
	 */
	private static final long serialVersionUID = 3221048192772814384L; 

    
    private String stepName;

    
    private String description;

    
    private Integer index;

    
    private Integer type;

    
    private String initFunction;

    
    private String runFunction;

    
    private String saveFunction;

    
    private String transitFunction;

    
    private String isCanEnd;

    
    private String executor;

    
    private String executeType;

    
    private String remindType;

    
    private Date remindTime;

    
    private Integer lastDate;

    
    private WorkflowTemplateBean workflowTemplate;

   
    private Set preWorkflowTransitions;

   
    private Set nextWorkflowTransitions; 

    /** default constructor */
    public WorkflowStepBean() {
    } 
 

    public String getStepName() {
        return this.stepName;
    }

    public void setStepName(String stepName) {
        this.stepName = stepName;
    }

    public String getDescription() {
        return this.description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getIndex() {
        return this.index;
    }

    public void setIndex(Integer index) {
        this.index = index;
    }

    public Integer getType() {
        return this.type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getInitFunction() {
        return this.initFunction;
    }

    public void setInitFunction(String initFunction) {
        this.initFunction = initFunction;
    }

    public String getRunFunction() {
        return this.runFunction;
    }

    public void setRunFunction(String runFunction) {
        this.runFunction = runFunction;
    }

    public String getSaveFunction() {
        return this.saveFunction;
    }

    public void setSaveFunction(String saveFunction) {
        this.saveFunction = saveFunction;
    }

    public String getTransitFunction() {
        return this.transitFunction;
    }

    public void setTransitFunction(String transitFunction) {
        this.transitFunction = transitFunction;
    }

    public String getIsCanEnd() {
        return this.isCanEnd;
    }

    public void setIsCanEnd(String isCanEnd) {
        this.isCanEnd = isCanEnd;
    }

    public String getExecutor() {
        return this.executor;
    }

    public void setExecutor(String executor) {
        this.executor = executor;
    }

    public String getExecuteType() {
        return this.executeType;
    }

    public void setExecuteType(String executeType) {
        this.executeType = executeType;
    }

    public String getRemindType() {
        return this.remindType;
    }

    public void setRemindType(String remindType) {
        this.remindType = remindType;
    }

    public Date getRemindTime() {
        return this.remindTime;
    }

    public void setRemindTime(Date remindTime) {
        this.remindTime = remindTime;
    }

    public Integer getLastDate() {
        return this.lastDate;
    }

    public void setLastDate(Integer lastDate) {
        this.lastDate = lastDate;
    }

    public WorkflowTemplateBean getWorkflowTemplate() {
        return this.workflowTemplate;
    }

    public void setWorkflowTemplate(WorkflowTemplateBean workflowTemplate) {
        this.workflowTemplate = workflowTemplate;
    }

    public Set getPreWorkflowTransitions() {
        return this.preWorkflowTransitions;
    }

    public void setPreWorkflowTransitions(Set preWorkflowTransitions) {
        this.preWorkflowTransitions = preWorkflowTransitions;
    }

    public Set getNextWorkflowTransitions() {
        return this.nextWorkflowTransitions;
    }

    public void setNextWorkflowTransitions(Set nextWorkflowTransitions) {
        this.nextWorkflowTransitions = nextWorkflowTransitions;
    }

    /**
	 * @see java.lang.Object#equals(Object)
	 */
	public boolean equals(Object object) {
		return EqualsBuilder.reflectionEquals(this, object);
	}

	/**
	 * @see java.lang.Object#hashCode()
	 */
	public int hashCode() {
		return HashCodeBuilder.reflectionHashCode(this);
	}

	/**
	 * @see java.lang.Object#toString()
	 */
	public String toString() {
		return ToStringBuilder.reflectionToString(this,
				ToStringStyle.MULTI_LINE_STYLE);
	}

}
